Telegram Group & Telegram Channel
#include <iostream>
using namespace std;

int main()
{
int a[10][10], b[10][10], c[10][10], i, j, n, m;
cout << "Enter n : ";
cin >> n;
cout << "Enter m : ";
cin >> m;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << "Enter a index[" << i << "][" << j << "] : ";
cin >> a[i][j];
cout << "Enter b index[" << i << "][" << j << "] : ";
cin >> b[i][j];
c[i][j] = a[i][j] + b[i][j];
//
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << a[i][j] << " ";
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << b[i][j] << " ";
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << c[i][j] << " ";
}
}
cout << endl;
}
//مجموع مصفوفتين متوازيتين



tg-me.com/ccarabe/153
Create:
Last Update:

#include <iostream>
using namespace std;

int main()
{
int a[10][10], b[10][10], c[10][10], i, j, n, m;
cout << "Enter n : ";
cin >> n;
cout << "Enter m : ";
cin >> m;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << "Enter a index[" << i << "][" << j << "] : ";
cin >> a[i][j];
cout << "Enter b index[" << i << "][" << j << "] : ";
cin >> b[i][j];
c[i][j] = a[i][j] + b[i][j];
//
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << a[i][j] << " ";
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << b[i][j] << " ";
}
}
cout << endl;
for (i = 0; i < m; i++)
{
for (j = 0; j < m; j++)
{
cout << c[i][j] << " ";
}
}
cout << endl;
}
//مجموع مصفوفتين متوازيتين

BY C / C++ | العرب 🇵🇸




Share with your friend now:
tg-me.com/ccarabe/153

View MORE
Open in Telegram


C C | العرب Telegram | DID YOU KNOW?

Date: |

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

C C | العرب from fr


Telegram C / C++ | العرب 🇵🇸
FROM USA